//
//  ILGBaseVC.m
//  ILGDemo
//
//  Created by HappyWork on 2018/11/8.
//  Copyright © 2018 Happy. All rights reserved.
//

#import "ILGBaseVC.h"

@interface ILGBaseVC ()

@end

@implementation ILGBaseVC

+ (void)load {
    NSLog(@"%s", __func__);
}

+ (void)initialize {
    if (self == [ILGBaseVC class]) {
    }
//    NSLog(@"%s", __func__);
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"%s", __func__);
    self.navigationItem.title = @"";
    
//    NSDictionary *dic = @{NSForegroundColorAttributeName:[UIColor redColor],NSFontAttributeName:[UIFont systemFontOfSize:18], NSShadowAttributeName:({
//        NSShadow *shadow = [NSShadow new];
//        [shadow setShadowOffset:CGSizeMake(0.f, 0.f)];
//        shadow;
//    })};
//    self.navigationController.navigationBar.titleTextAttributes = dic;
    
    
//    UIImage *image = [UIImage imageNamed:@"nav_back_normal.png"];
//    UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithImage:image
//                                                                 style:UIBarButtonItemStylePlain target:self action:@selector(navigationBackButtonDidTap)];
//    self.navigationItem.hidesBackButton = YES;
//    self.navigationItem.leftItemsSupplementBackButton = YES;
//    self.navigationItem.backBarButtonItem = backItem;

    if (self.navigationController.viewControllers.count == 1 && self.navigationController.viewControllers.firstObject == self) {
        
    } else {
        if ([self isKindOfClass:[ILGBaseVC class]]) {

        } else {

        }
    }
    self.navigationController.navigationBar.tintColor = [UIColor redColor];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    
}

//- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%s", __func__);
//
//    [super touchesBegan:touches withEvent:event];
//}
//
//- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%s", __func__);
//
//    [super touchesMoved:touches withEvent:event];
//}
//
//- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%s", __func__);
//
//    [super touchesEnded:touches withEvent:event];
//}
//
//- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%s", __func__);
//
//    [super touchesCancelled:touches withEvent:event];
//}


#pragma mark - data

@end
